-
Notifications
You must be signed in to change notification settings - Fork 187
Enable full toml
configuration and pyproject.toml
#534
Conversation
@Nurdok, sorry to bother you, but can you maybe take a look at this PR? |
@samj1912 is the current active maintainer - I'll let him address this PR. |
Will take a look this weekend :) |
This generally looks good to me, just a couple of comments -
|
|
I meant something similar to this - https://github.com/cruft/cruft/pull/107/files
Yup, this is what I meant :). |
Sure, I guess a warning is an acceptable compromise. |
Code wise it all looks good :) Could you also update the changelog with an entry for this PR and if possible update the docs! Thanks |
As I mentioned in the original post
|
Thank you for this PR :) |
👍 Btw, I was wondering, does |
It does not have a fixed release schedule. I can cut a release sometime next week though :) |
That would be much appreciated. |
Nice work :) turns out it wasn't at all as complex as implied, eh. That, or you're a software engineer from beyond modern earth. All jokes aside, thank you for this - I'll be using this feature in proselint shortly too |
This PR closes #447.
Changes
Fix a small unrelated bug, where inline comments in
.ini
files behaved differently when autodetected by_get_config_file_in_folder
and when manually specified by--config
.Add
toml
as a package dependency (setup.py
) and as a pinned runtime dependency (requirements/runtime.txt
).Implement
TomlParser
- a thin wrapper around thetoml
library with minimal API parity withRawConfigParser
.Autodetect
pyproject.toml
configurationAutodetect
tool.pydocstyle
sectionImplement error code list support for
toml
. This is so that you can useand not only
Almost all tests in
test_integration.py
which used theenv
fixture now are run for bothtoml
andini
versions of the configuration (47 tests).2 tests are only run for
ini
configuration:test_ignores_whitespace_in_fixed_option_set
andtest_multiple_lined_config_file
. Intoml
, strings must be quoted, so comments and newlines inside the strings don't make much sense, which is what these tests are checking. Instead, I've implemented 2 "equivalent"toml
tests that also check the list support:test_accepts_ignore_error_code_list
andtest_accepts_select_error_code_list
.Please make sure to check for the following items:
Make sure to include the PR number after you open and get one.
There's currently no "Current Development Version" section in
docs/release_notes.rst
. Where should I add the changes?